package com.yunxin.admin.system.domain.model.role;

import java.util.List;

/**
 * @author zero°
 * @since 2023-07-11
 */
public interface RoleMenuRepository {

    /**
     * 获取角色拥有的菜单ID集合
     *
     * @param roleId roleId
     * @return List<Long>
     */
    List<Long> listMenuIdsByRoleId(Long roleId);

    /**
     * 根据角色id删除数据
     * @param roleId roleId
     * @return boolean
     */
    boolean remove(Long roleId);

    /**
     * 批量保存
     * @param roleId roleId
     * @param menuIds menuIds
     * @return boolean
     */
    boolean saveBatch(Long roleId, List<Long> menuIds);
}
